package com.xuzhiguang.baidu.pan.sdk.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;

/**
 * @author xuzhiguang
 * @date 2020/6/26 17:14
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
@JsonIgnoreProperties(ignoreUnknown = true)
public class BasicVideoListParams {

    /**
     * 页码，从1开始
     */
    private Integer page;

    /**
     * 每页返回的页码数， 默认值为1000, 最大值为10000
     */
    private Integer num;

    /**
     * 排序字段：默认为time
     * time按修改时间排序，ctime按上传时间排序，
     * name按文件名称排序，size按文件大小排序
     */
    private String order;

    /**
     * 1 为降序， 0为升序， 默认 1
     */
    private String desc;

    /**
     * 值为web时，返回值增加thumbs字段
     */
    private Integer web;

    /**
     * 目录名称，默认为/
     */
    private String parentPath;

    @Override
    public String toString() {
        return "BasicVideoListParams{" +
                "page=" + page +
                ", num=" + num +
                ", order='" + order + '\'' +
                ", desc='" + desc + '\'' +
                ", web='" + web + '\'' +
                ", parentPath='" + parentPath + '\'' +
                '}';
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Integer getWeb() {
        return web;
    }

    public void setWeb(Integer web) {
        this.web = web;
    }

    public String getParentPath() {
        return parentPath;
    }

    public void setParentPath(String parentPath) {
        this.parentPath = parentPath;
    }
}
